from django.conf.urls import url
from . import views

from rest_framework.routers import DefaultRouter
from .views import UserGropInfoViewset
group_router = DefaultRouter()

group_router.register('GroupsInfo', UserGropInfoViewset)


urlpatterns = [
    url(r'^usernames/(?P<username>\w{5,20})/count/$',
        views.UserNameCountView.as_view()),
    url(r'^mobiles/(?P<mobile>1[3456789]\d{9})/count/$', views.MobileCountView.as_view()),
    url(r'^users/$', views.UserView.as_view())
]